net: mvpp2: Add remove function that is called before the OS is started
authorStefan Roese <[email protected]>
Thu, 23 Mar 2017 16:01:59 +0000 (17:01 +0100)
committerStefan Roese <[email protected]>
Tue, 9 May 2017 11:38:17 +0000 (13:38 +0200)
commit2f720f195792bb29289827ef9512e0366a81933b
treef31670da4ca55a0ecd620356774e9c296df911c2
parent2f92629112a1055ed37f8b05dfcf00c3f1875503
net: mvpp2: Add remove function that is called before the OS is started

This patch adds a remove function to the mvpp2 ethernet driver which is
called before the OS is started, doing:

- Allocate the used buffers back from the buffer manager
- Stop the BM activity

Signed-off-by: Stefan Roese <[email protected]>
Cc: Stefan Chulski <[email protected]>
Cc: Kostya Porotchkin <[email protected]>
Cc: Nadav Haklai <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/mvpp2.c